package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.CstCustomerDao;
import cn.com.bdqn.entity.CstCustomer;
import cn.com.bdqn.service.CstCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CstCustomerServiceImpl implements CstCustomerService {

    @Autowired
    private CstCustomerDao dao;

    @Override
    public List<CstCustomer> queryByLike(CstCustomer customer) {
        return dao.queryByLike(customer);
    }

    @Override
    public CstCustomer queryByCustNo(String custNo) {
        return dao.queryByCustNo(custNo);
    }

    @Override
    public int addCstCustomer(CstCustomer customer) {
        return dao.addCstCustomer(customer);
    }

    @Override
    public CstCustomer queryByDate(String bidDate) {
        return dao.queryByDate(bidDate);
    }

    @Override
    public int updateCstCustomer(CstCustomer customer) {
        return dao.updateCstCustomer(customer);
    }

    @Override
    public void updateCustStatus(String custNo) {
        dao.queryByDate(custNo);
    }
}
